class UnreviewedOrdersResponse {
  int? totalSize;
  String? limit;
  String? offset;
  List<ReviewOrder>? reviewOrders;

  UnreviewedOrdersResponse(
      {this.totalSize, this.limit, this.offset, this.reviewOrders});

  UnreviewedOrdersResponse.fromJson(Map<String, dynamic> json) {
    totalSize = json['total_size'];
    limit = json['limit'];
    offset = json['offset'];
    if (json['orders'] != null) {
      reviewOrders = [];
      json['orders'].forEach((v) {
        reviewOrders!.add(new ReviewOrder.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['total_size'] = this.totalSize;
    data['limit'] = this.limit;
    data['offset'] = this.offset;
    if (this.reviewOrders != null) {
      data['orders'] = this.reviewOrders!.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class ReviewOrder {
  int? id;

  ReviewOrder({this.id});

  ReviewOrder.fromJson(Map<String, dynamic> json) {
    id = json['id'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    return data;
  }
}
